﻿////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// <copyright>Copyright 2008-2011 Andreas Huber Doenni</copyright>
// Distributed under the GNU General Public License version 2 (GPLv2).
// See accompanying file License.txt or copy at http://phuse.codeplex.com/license.
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

namespace Phuse.Net.Forums
{
    using System.Data.Linq.Mapping;
    using System.Diagnostics.CodeAnalysis;

    /// <summary>Represents a file or directory that will be deleted with the next compaction.</summary>
    [Table]
    [SuppressMessage("Microsoft.StyleCop.CSharp.OrderingRules", "SA1202:ElementsMustBeOrderedByAccess", Justification = "The order of the properties defines the order of database columns.")]
    internal sealed class DeleteFile
    {
        [SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode", Justification = "Called through reflection.")]
        [Column(IsPrimaryKey = true, IsDbGenerated = true)]
        private int Id { get; set; }

        [Column(CanBeNull = false, DbType = "NVARCHAR(256) NOT NULL", UpdateCheck = UpdateCheck.Never)]
        internal string Path { get; set; }
    }
}
